package com.ticket.sass.provider.dto.output.tenant;

import com.ticket.sass.common.entity.provider.TenantWxaConfigEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Objects;

/**
 * @author ywb
 * @date 2024-03-24 17:28
 */
@Data
@ApiModel
public class WxaConfigOutput {
    @ApiModelProperty(value = "小程序应用ID")
    private String appid;
    
    @ApiModelProperty(value = "小程序密钥")
    private String secret;
    
    public WxaConfigOutput() {
    }
    
    public WxaConfigOutput(TenantWxaConfigEntity entity) {
        if (Objects.nonNull(entity)){
            this.appid = entity.getAppid();
            this.secret = entity.getSecret();
        }
    }
    
    
}
